A move that caught many by surprise was a big write-down for Berkshire’s underperforming Kraft Heinz stake.