code: public void writeAll() throws IOException {
      this.layoutVersion = FSConstants.LAYOUT_VERSION;
      for (Iterator<StorageDirectory> it = storageDirs.iterator(); it.hasNext();) {
        it.next().write();
      }
    }
docs: Write all data storage files.
  @throws IOException