I figured it out. What I did was to select all my contacts in my address book, exported them as an archive so that I would have a backup in case of anything and made sure I know the folder it was saved in (most likely 'Documents'). Then I created a folder on my desktop and selected all my contacts again in address book and dragged them into the folder I created on my desktop hence saving them in one vCard. then that done I went to my address book selected all my contacts once more and deleted them all. I restarted address book making sure that there were no contacts then went to my saved vCard in the folder on the desktop and double clicked it, and accepted to add the contacts. After that connected my iPhone, checked the "Contacts" under "Replace information on this iPhone" in iTunes and clicked apply and I had successfully transferred the contacts at the end of the sync