write flag to balance