Someone who writes a story for which you claim credit is a ghost writer.