Fix write method bugs

Starving