protected void checkIfWritable() {
    if (!writeMode) {
      throw new IllegalStateException(
          "not in write mode");
    }
  }
write the low-order 8 bits of the given int
geode-serialization/src/main/java/org/apache/geode/internal/serialization/BufferDataOutputStream.java