PURPOSE: This phase II trial is studying giving treosulfan together with fludarabine to see how well it works in treating patients who are undergoing a donor stem cell transplant for acute myeloid leukemia, acute lymphoblastic leukemia, or myelodysplastic syndrome.