misc: simplify using simple_write_to_buffer

Simplify misc_write operation using simple_write_to_buffer.