Fix writing table directory
Fix the structure of the generated WOFF2 file

Still rejected by OTS, needs more investigation.