batch write table