It does not follow in general from that . Instead, we have either that or . In the given situation, we have that , and so this was the fallacious step.
Looking for a challenging algebra text? Preparing for MATHCOUNTS or the AMC exams? Check out Art of Problem Solving's Introduction to Algebra by Richard Rusczyk.