I think you confuse write() with print(). Write takes either a single byte or a buffer and length: SD - Arduino Reference