Update bitvector.h

Change the function "write(int)" into a non-const one.