The new battery-box in the 787 is vented to atmosphere
It's not.
It is only vented to atmosphere once the pressure inside the box ruptures a disc in the vent. This protection is set to rupture at a much higher pressure than the differential at normal altitude.