write_xlsx function

Write data to an xlsx file