Write the index file to disk.
The file will be stored as pack-$hash.idx in the same directory as the packfile.
the indexer instance