write metadata into nav file header