Made it so that the data of each link is outputted to coarse.links using one fwrite on the cb_link_to_compressed_data of the link