write batch add data function

leveled will support it later