Balanced file distribution algorithm V1