Determining Energy Balance in the Flaring Chromosphere from Oxygen V Line Ratios