Fixed the problem that possibly calculates the wrong count to be written when the SmartBuffer instance is recycled.