I could be wrong, but the white wire is most likely going to a board meant for charging (connects to the 3rd pin of the charging port if it has one). Those are meant to sense when the charger is connected. It would be helpful if we could see a picture of the actual battery being replaced.