[step:Bound each majority event by an exponential moment estimate]Since the blocks $B_1,\dots,B_k$ are disjoint and the variables $X_1,\dots,X_n$ are independent, the subfamilies $(X_i)_{i\in B_1},\dots,(X_i)_{i\in B_k}$ are independent. Let $\mathcal G_j:=\sigma(X_i:i\in B_j)$ denote the sigma-algebra generated by the variables in block $B_j$. The sigma-algebras $\mathcal G_1,\dots,\mathcal G_k$ are independent, and $Y_j$ is $\mathcal G_j$-measurable for each $j$. By the closure property in the definition of [independence of random variables](/page/Independence%20%28Probability%20Theory%29), measurable functions of independent sigma-algebras are independent, so $Y_1,\dots,Y_k$ are independent. Hence the indicators $\mathbb 1_{A_{1,\mathrm{up}}},\dots,\mathbb 1_{A_{k,\mathrm{up}}}$ are independent Bernoulli random variables. Define $p_{j,\mathrm{up}}:=\mathbb P(A_{j,\mathrm{up}})$, so $0\le p_{j,\mathrm{up}}\le 1/8$.
Let $t:=\log 4$. Since $e^t=4$, independence gives
\begin{align*}
\mathbb E[e^{tS_{\mathrm{up}}}]=\prod_{j=1}^k\mathbb E[e^{t\mathbb 1_{A_{j,\mathrm{up}}}}]=\prod_{j=1}^k\left(1+p_{j,\mathrm{up}}(e^t-1)\right)\le \prod_{j=1}^k \exp\left(p_{j,\mathrm{up}}(e^t-1)\right)\le \exp\left(k\cdot \frac18\cdot 3\right)=\exp\left(\frac{3k}{8}\right).
\end{align*}
On the event $\{S_{\mathrm{up}}\ge k/2\}$, $e^{tS_{\mathrm{up}}}\ge e^{tk/2}$. Therefore [Markov's inequality](/theorems/514), applied to the non-negative random variable $e^{tS_{\mathrm{up}}}$, gives
\begin{align*}
\mathbb P(S_{\mathrm{up}}\ge k/2)\le e^{-tk/2}\mathbb E[e^{tS_{\mathrm{up}}}]\le \exp\left(-\frac{k}{2}\log 4+\frac{3k}{8}\right)=\exp\left(-k\log 2+\frac{3k}{8}\right)\le e^{-k/8},
\end{align*}
because $\log 2\ge 1/2$.
The lower indicators $\mathbb 1_{A_{1,\mathrm{low}}},\dots,\mathbb 1_{A_{k,\mathrm{low}}}$ are also independent Bernoulli random variables by the same measurable-map argument. Define $p_{j,\mathrm{low}}:=\mathbb P(A_{j,\mathrm{low}})$, so $0\le p_{j,\mathrm{low}}\le 1/8$. With the same value $t=\log 4$,
\begin{align*}
\mathbb E[e^{tS_{\mathrm{low}}}]=\prod_{j=1}^k\mathbb E[e^{t\mathbb 1_{A_{j,\mathrm{low}}}}]=\prod_{j=1}^k\left(1+p_{j,\mathrm{low}}(e^t-1)\right)\le \exp\left(\frac{3k}{8}\right).
\end{align*}
On $\{S_{\mathrm{low}}\ge k/2\}$, [Markov's inequality](/theorems/514) applied to the non-negative random variable $e^{tS_{\mathrm{low}}}$ gives
\begin{align*}
\mathbb P(S_{\mathrm{low}}\ge k/2)\le e^{-tk/2}\mathbb E[e^{tS_{\mathrm{low}}}]\le \exp\left(-k\log 2+\frac{3k}{8}\right)\le e^{-k/8}.
\end{align*}[/step]