Ālāfin in thalāthatu ālāfin is plural genitive.
Number Nouns: Rules from One to One Thousand