The correct answer to the question "¿Qué escribiste?" in the past tense is:
B. Escribí un cuento
This is because "escribí" is the first-person singular form of the verb "escribir" (to write) in the simple past tense. The other options either use incorrect verb forms or are in different persons.