write bytecode to disk