This depends on the intention of the person that made the vow (nadhr). If he meant particularly and literally writing a book, then that is specifically what he must do. If he meant bringing some material or information into the public or to publish something in any way, then he has a choice.