Fix write network inventory on disk