"Записывать" ("записать" - perfective) means that you write (or record) some particular piece of information - записывать телефон (to write down a phone number), записывать сообщение (to write down a message), записывать диск (to record a disc).
"Писать" ("написать" - perfective) means the process, means that the size of the text you are writing cannot be valuated exactly - писать письмо, диктант, роман (to write a letter, a dictation, a novel). Though in colloquial speech you can say "Пиши телефон!"

, but only in imperative.