Adding pending samples to be written