I would say for the middle sentence, grammatically "Who was writing the book?" would be more accurate. This sentence is good, but works best when asking in a specific context. However if you are just asking students who the author is, you'd put "Who wrote this book?"
"Who has written this book?" is also okay to ask, but "who wrote" is best.