This works out well according to Rav Kahana, who teaches it in the name of Shmuel. But according to Rav Tavyomi, who teaches it in the name of Rav, what is there to say?
הניחא לרב כהנא דמתני לה משמיה דשמואל שפיר אלא לרב טביומי דמתני לה משמיה דרב מאי איכא למימר
And Rabbi Yoḥanan said: They taught [this] only between the witnesses and the writing, but between the witnesses and the validation, even one line is invalid.
ורבי יוחנן אמר לא שנו אלא בין העדים לכתב אבל בין עדים לאשרתא אפילו שיטה אחת פסול
What is different between the witnesses and the validation? Perhaps he will cut off the upper [part] and write it and its witnesses in one line; and he holds: A document that comes, it and its witnesses in one line, is valid.
מאי שנא בין עדים לאשרתא דלמא גייז לעילאי וכתב הוא ועדיו בשיטה אחת וקסבר שטר הבא הוא ועדיו בשיטה אחת כשר
If so, between the witnesses and the writing too, perhaps he will cut off the upper [part] and write whatever he wishes, and the witnesses are signed [below]? He holds: A document that comes, it in one line and its witnesses in another line, is invalid.
אי הכי בין עדים לכתב נמי דלמא גייז ליה לעילאי וכתב מאי דבעי וחתימי סהדי קא סבר שטר הבא הוא בשיטה אחת ועדיו בשיטה אחרת פסול
The matter itself: Rav said: A document that comes, it and its witnesses on an erasure, is valid.
גופא אמר רב שטר הבא הוא ועדיו על המחק כשר
Original: Bava Batra 163b on Sefaria, version “Wikisource Talmud Bavli” (Hebrew Wikisource), license CC BY-SA. The original is reproduced without changes to its content, only divided into segments. The English translation is a derivative work produced by machine (the Claude model) and is distributed under the license CC BY-SA 4.0.
Original with vowels (the “With vowels” checkbox): vocalization from Sefaria, version “William Davidson Edition – Vocalized Aramaic” (Koren), license CC BY-NC 4.0, aligned with the original used here.