PURPOSE: This randomized clinical trial is studying voriconazole to see how well it works compared to itraconazole in preventing fungal infections in patients who are undergoing allogeneic hematopoietic stem cell transplantation.