private void expandIfNecessary(int minBlockCount) {
    if (minBlockCount > blocks.length) {
      this.blocks = Arrays.copyOf(blocks, nextPowerOf2(minBlockCount));
    }
  }
Returns the write lock for this file.
jimfs/src/main/java/com/google/common/jimfs/RegularFile.java