The same particle can appear in two different meanings. Read both the meaning and the verb ending.
تَكْتُبُ — you write or will write.
لَا تَكْتُبُ — you do not write or will not write: negation; the final ḍammah remains.
لَا تَكْتُبْ — do not write: prohibition; the final consonant is sakin.
Urdu “نہیں” usually states non-occurrence; “مت” normally expresses prohibition.