added writeContactToFile();

This method writes new contacts to contacts.txt