Hello Joseph,
In your example A is better, because of the usage of " Science and Civilization" ,if it were "books" for example it would be adequate to use both:
" He devoted his entire life to writing books" or " to the writing of books".
Alright then. In this case:
B is correct ,however it is better to hint to the fact that "Science and Civilization" is a book; like putting it in brackets or referring to it as " his book"
- He devoted his entire life to writing his book "Science and Civilization in China".
- He devoted his entire life to writing "Science and Civilization in China".
I think Jura also didn't know that it is a title of a book ,that is why she used "about".