Flow time scheduling and prefix Beck-Fiala