If you friend called you and the number is in the "call list", highlight the number, press the Menu button, select Add to Contacts.
If after you add the number to the Contacts, you also want to add it to the SIM phone book, go to the contact in the Contacts list, open the contact, highlight the phone number, press Menu, select Copy to SIM Phone Book.