I did that on purpose because "why does she write a book" is unnatural speech. It works with plural normally: "Why does she write books?" It also works normally with negation: "Why doesn't she write a book?"
The correct structure with a singular book is "Why IS she WRITING a book?" This is because, "She writes a book," is unnatural. It should be, "She is writing a book."
I'd say "Why is she writing a book?" sounds better. "Why does she write a book?" sounds like an odd construction even though it's not ungrammatical.