They won because of the onside kick. Even with all the blown coverages and missed tackles, the Clemson offense was scoring just as much as Alabama. Alabama got an extra offensive possession by converting the onside kick and they won by one possession.