serial.write(0x00); gives an error

I get that, too.
But...
If I make a variable -
byte zero = 0;

and then
Serial.write(zero);
it compiles.

Test that out.