ghostwriter

someone who does literary work for someone else who takes the credit.