writing buffer exausted with stumb