code: static void writeHeader(DataOutputStream out, DataChecksum checksum)
                           throws IOException {
      writeHeader(out, new BlockMetadataHeader(METADATA_VERSION, checksum));
    }
docs: Writes all the fields till the beginning of checksum.
  @param out
  @param checksum
  @throws IOException