Having written two novels, I will tell you it's far less work for a lot of writers to write the thing than getting decent sales. It varies - some do slave over their manuscripts for years, while others churn them out in a week, but selling books is hard work.