In general, writing on vehicles is illegal. However, if it is an official document such as an insurance card, you are allowed to write on its surface. Otherwise, you should find another way to mark your car's door or window.