write a bit