The Anchorage Daily News cited the existance of the book deal two months before Palin quit. The book was contracted for publication in early 2010. The duties of running the state would have gotten in the way of her writing.
http://www.adn.com/2009/05/12/793061/palin-signs-deal-for-memoir-to.html
She chose door number two --- the money.