La write si aspetta un puntatore a char, non un char e basta (serve per poter scrivere a blocchi); a te basta semplicemente scrivere:
codice:
file.write((char*)&car, 1);
o più semplicemente,
codice:
file.put(car);