How old are the batteries, exactly? If they are original to the UPS, they must be at least 3-5 years old, since the 700 model has been discontinued for quite some time. If they're newer, did you replace them with APC batteries? The model & serial number for both the batteries and the UPS would help - there should be a white sticker with barcodes on the UPS (usually on the back) and somewhere on the batteries as well.
Old batteries will experience this issue if left unattended for some time. The unit should have given an alarm about the batteries - either a flashing or solid light on the replace battery indicator on the front display - long before they reached this state. Charging produces heat, but dead batteries don't hold much charge. It becomes a cycle of increasing heat, which causes the gases inside the battery to expand and, eventually, leak out of the battery casing. That's the smell you detected, and that's why the casing is misshapen.
See
kbase 564 for the MSDS sheets for APC batteries.