Normally, ikke comes after the verb (in this case skriver). However, in subordinate clauses, the sentence structure follows a subject, adverb, verb word order.
F.eks: Hendes lærer er ikke glad for hende, [fordi hun ikke skriver brevet], where the subordinate clause is in brackets.