A ghostwriter is an author who writes under someone else's name, with their consent. A ghostwriten book is thus somewhat deceptive- the author on the cover is not the actual writer.
Ghostwriters are often employed by celebrities to write autobiographies in situations in which the celebrities themselves may not be talented authors.