Obviously the mental representation for a book is much larger and more complex than one for a personal letter or a blog post, but the general pattern is the same: to write well, develop a mental representation ahead of time to guide your efforts, then monitor and evaluate your efforts and be ready to modify that representation as necessary.