Write index on disk to reflect changes after commit