Flat sales and strategic investments sent fashion retail business Belk to a third-quarter loss, despite an encouraging rise in online sales.