Is Ghostwriting Immoral?

Writing without a byline is a much more secure way to make a living than publishing in your own name. If fortune attracts you more than fame does, contract writing (which is writing on a particular subject without much input from your client) and ghostwriting (writing something in your client