أَنْ يَكْتُبُونَ is correctly formed after أَنْ.

An and Masdar Muawwal