No, the grammatically correct way to say that would be: I wrote the book.
It actually depends. You would use which if you were asking what book they wrote among a certain selection of books. You would use what if you were just asking in general.
The Feminine Mystique! :)
The Feminine Mystique
A book.