I would probably say "I can't take the written test, but I can take the oral."
It depends a bit on who you are speaking to, but generally, this should be fine. Where is your teacher from? That can also make a difference in usage and how formal your language should be.