so the battery shorted and burnt a wire inside... I wonder why it didn't trip the fuse first.
also, I would be cautious with the other bike that you put the battery in. there's obviously an exposed wire somewhere in the controller or power wire that's shorting out the battery