Method of computing balanced routing paths in fat-trees