WritePakFooter

Write the index and other data at the end of a pak file after all the entries