private int blockIndex(long position) {
    return (int) (position / disk.blockSize());
  }
Gets the block at the given index, expanding to create the block if necessary.
jimfs/src/main/java/com/google/common/jimfs/RegularFile.java