Writing file for infomap to work done.