There is nothing wrong with scribbling in your own books.
There is also nothing wrong with donating such books with clearly written disclaimer on the front page about the condition of the book.
Repackaging as 99% likenew and selling them should be a crime though.