lavr: fix the decision for writing directly to the output buffer