The writer of poetry is the subject. The prepositional phrase of poetry within the full noun/nominal phrase the writer of poetry.
I am not sure if that comes even close to answering your question, but that is how I view the problem with the erroneous sentence.
I am not a teacher.
Student or Learner