Step 1: Rule after "did not."
After "did not," we always use the base form of the verb.
Step 2: Apply rule.
So, "did not write."
Step 3: Eliminate.
(B) writes – wrong tense.
(C) wrote – past form, incorrect after "did."
(D) written – past participle, incorrect.