A writer from Sheffield whose book has raised money for a cancer charity said he has been forced to pay tax on the "profits".