finish buffer chunk