write lut file in binary mode