I had a leak in my shower that did that to my floor and tile had to take the floor down to the sub floor and the tiles up to where I found dry part of the wall and replace the floor and bad tiles turned out to be a lot of work, once you get the bad stuff removed you have to let every thing dry, im no carpenter but it turn out nice. If it was a burst pipe your homeowners insurance should pay for the repairs , good luck.